<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    for(v=1;v<=9;v++){
        document.write('<br>');
        for(p=1;p<=v;p++){
            sum =p*v;
            document.write(p ,"*",v ,"=",sum," ");
        }
    }
</script>
</body>
</html>